package main

import (
	"fmt"
	"strings"
)

func main() {
	var a string
	fmt.Println("请进行输入")
	fmt.Scan(&a)
	a = strings.ToLower(a)
	b := len(a)
	c := 0
	for i := 0; i <= b/2; i++ {
		if a[i:i+1] == a[b-i-1:b-i] {
			c += 1
		}
	}
	if c == b/2 || c == b/2+1 {
		fmt.Println("输入的是回文")
	} else {
		fmt.Println("输入的不是回文")
	}
}
